﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AboutUsCultureProperty.ascx.cs" Inherits="NLUNZ.UserControls.AboutUsCultureProperty" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:LinqDataSource ID="LinqDataSource1" 
    ContextTypeName="NLUNZ.NLUDBDataContext" TableName="Dictionaries" 
    runat="server" EnableUpdate="True" Where="Key == @Key">
    <WhereParameters>
        <asp:Parameter DefaultValue="AboutUs-Culture" Name="Key" Type="String" />
    </WhereParameters>
</asp:LinqDataSource>
<asp:FormView ID="FormView1" runat="server" DataKeyNames="Key" 
    DataSourceID="LinqDataSource1" EnableModelValidation="True">
    <EditItemTemplate>
            <div class="formEditControl">
        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
            CommandName="Update" Text="Update" />
        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
            CausesValidation="False" CommandName="Cancel" Text="Cancel" />
        </div>
        <div class="dictEditView">
            <telerik:RadEditor ID="RadEditor1" runat="server" 
                Content='<%# Bind("Value") %>' Width="702px">
            </telerik:RadEditor>
        </div>
    </EditItemTemplate>
    <ItemTemplate>
        <div class="formEditControl">
        <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" 
            CommandName="Edit" Text="Edit" /></div>
        <div class="dictDisplayView">
        <asp:Literal runat="server" ID="aboutusview" Text='<%#Bind("Value") %>'></asp:Literal>
        </div>
    </ItemTemplate>
</asp:FormView>
